﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Facebook.Master" Inherits="System.Web.Mvc.ViewPage<SimplePoll.Web.Models.PollResult>" %>

<asp:Content ID="PollResultsTitleContent" ContentPlaceHolderID="TitleContent" runat="server">
	PollResults
</asp:Content>

<asp:Content ID="PollResultsMainContent" ContentPlaceHolderID="MainContent" runat="server">

    <div class="wrap">
	    <div class="questions">
		     <img src="../../Content/images/simplePoll.jpg" alt="Simple Poll"/>
		
            <div id="CPresultwrap">
                <div id="CPresulthead">
                    <p class="qt" style="margin-top:46px;"><strong>Results for: <%=Model.Question %></strong></p>
                </div>
    
                <div id="CPresultbody">
    	            <h3><%=Model.Answer1 %></h3>
                    <div class="CPclear"></div>
        
                    <div class="CPpercent"><p><%=Model.Answer1Percentage %>%</p></div>
        
                    <div class="CPpollgraph">
        	            <div class="CPmask" style="width:<%=Model.Answer1Percentage %>%;"></div>
                    </div>
                    <div class="CPclear" style="padding-bottom:20px;"></div>
        
                    <!-- end of Answer1 -->
        
    	    	    <h3><%=Model.Answer2 %></h3>
    	            <div class="CPclear"></div>
    	        
    	            <div class="CPpercent"><p><%=Model.Answer2Percentage %>%</p></div>
    	        
    	            <div class="CPpollgraph">
    	        	    <div class="CPmask" style="width:<%=Model.Answer2Percentage %>%;"></div>
    	            </div>
    	            <div class="CPclear" style="padding-bottom:20px;"></div>
        
                    <!-- end of Answer2 -->
        
    	    	    <h3><%=Model.Answer3 %></h3>
    	            <div class="CPclear"></div>
    	        
    	            <div class="CPpercent"><p><%=Model.Answer3Percentage %>%</p></div>
    	        
    	            <div class="CPpollgraph">
    	        	    <div class="CPmask" style="width:<%=Model.Answer3Percentage %>%;"></div>
    	            </div>
    	            <div class="CPclear" style="padding-bottom:20px;"></div>
    	            <!-- end of Answer3 -->
                </div><!-- end of CPresultbody -->
    
	            <div id="CPtotal">
        	        <div id="CPtotalvote">
        	        	<p>Total Votes: <%=Model.TotalVotes %></p>
        	        </div>
	            </div>
	        </div><!-- end of CPresultwrap -->
		</div>
    </div>

</asp:Content>
